# from django.conf.urls import url

# from apps.spit import views
#
# urlpatterns = [
#     url(r'^$', views.SpitView.as_view()),
#     url(r'^(?P<id>\d+)/collect/$', views.SpitCollectView.as_view()),
#     url(r'^(?P<id>\d+)/updatethumbup/$', views.SpitUpdatethumbupView.as_view()),
#     url(r'^(?P<id>\d+)/children/$', views.SpitChildrenView.as_view()),
#     url(r'^(?P<id>\d+)/$', views.SpitDetailView.as_view()),
# ]
#############################################################
# 以下为序列化器的路由
from rest_framework.routers import SimpleRouter
from apps.spit import viewset

router = SimpleRouter()
router.register('', viewset.SpitView, basename='spit')
urlpatterns = []
urlpatterns += router.urls
